package self.hoy.demo.grainmall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 2级分类vo
 * @author hyh
 * @date 2020/7/19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Catelog2Vo implements Serializable {

    private static final long serialVersionUID = -7514477185289991108L;

    /**
     * 一级父分类
     */
    private Long catalog1Id;
    private Long id;
    private String name;
    /**
     * 三级子分类
     */
    private List<Catelog3Vo> catalog3List;

    /**
     * 三级分类vo
     */
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Catelog3Vo implements Serializable {

        private static final long serialVersionUID = 335272552122597057L;

        private Long catalog2Id;
        private Long id;
        private String name;

    }
}
